#include "my_label.h"


My_label::My_label(QWidget *parent)
{

}

void My_label::mousePressEvent(QMouseEvent *event)
{
    qDebug()<<"点击事件触发"<<endl;
    QLabel::mousePressEvent(event);
    emit clicked();
}

void My_label::paintEvent(QPaintEvent *event)
{
    QLabel::paintEvent(event);
}
